import request from "@/utils/request";
//收款单列表
export function getReceivablesList(params) {
  return request({
    url: "/receipt",
    method: "get",
    params,
  });
}
//新增收款单
export function addReceivables(data) {
  return request({
    url: "/receipt",
    method: "post",
    data,
  });
}
//编辑收款单
export function editReceivables(data) {
  return request({
    url: `/receipt/${data.id}`,
    method: "put",
    data,
  });
}
//收款单审核
export function auditReceivables(data) {
  return request({
    url: `/receipt/review`,
    method: "patch",
    data,
  });
}
//收款单反审核
export function unAuditReceivables(data) {
  return request({
    url: `/receipt/antiCensorship`,
    method: "patch",
    data,
  });
}
//收款单概览
export function getReceivablesOverview(params) {
  return request({
    url: "/receipt/overview",
    method: "get",
    params,
  });
}
